﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;

/***
*机器名：BDXYIT-HUI
*项目名称：$projectname$
*命名空间：bdxyit.com.RecruitmentAppSys.Models
*文件名：FamilyInfoModels
*系统时间：3/25/2012 3:35:34 PM
*当前用户：huihui
*创建时间：2012
*
*修改时间：2012 3/25/2012 3:35:34 PM
*修改事件：
***/

namespace bdxyit.com.RecruitmentAppSys.Models
{
    public class FamilyInfo
    {

        public FamilyInfo() { }

        public FamilyInfo(string familyName, string relationship, string job, string sectorPosts, string address, string userID) 
        {
            this.FamilyName = familyName;
            this.Relationship = relationship;
            this.Job = job;
            this.SectorPosts = sectorPosts;
            this.Address = address;
            this.UserID = userID;
        }

        public FamilyInfo(string familyName, string relationship, string job, string sectorPosts, string address)
        {
            this.FamilyName = familyName;
            this.Relationship = relationship;
            this.Job = job;
            this.SectorPosts = sectorPosts;
            this.Address = address;
        }

        public int ID { get; set; }
        [Required(ErrorMessage = "家庭成员姓名不能为空！")]
        [StringLength(30)]
        public string FamilyName { get; set; }

        public string Relationship { get; set; }

        [Required(ErrorMessage = "工作单位不能为空！")]
        [StringLength(50)]
        public string Job { get; set; }

        [Required(ErrorMessage = "职务不能为空！")]
        [StringLength(100)]
        public string SectorPosts { get; set; }

        [Required(ErrorMessage = "居住地不能为空！")]
        [StringLength(100)]
        public string Address { get; set; }

        public string UserID { get; set; }
    }
}